@import '../../../common/style/mixin.less';

.builidngFilter {
  width: 200px;
  // height: 220px;
  // height: 200px;
  // background: rgba(9, 40, 57, 0.85);
  background: linear-gradient(135deg, #131b20 0%, #091218 100%);
  border-radius: 2px;
  border: 1px solid rgba(61, 251, 255, 0.2);
  list-style: none;
  padding: 16px;
  margin-bottom: 20px;

  &Left2 {
    left: 448px;
  }

  li {
    // display: inline-block;
    color: #a4adb2;
    margin-right: 10px;
    margin-bottom: 6px;

    .color {
      display: inline-block;
      vertical-align: middle;
      margin-right: 8px;
      width: 16px;
      height: 4px;
      cursor: pointer;
      opacity: 0.6;
      transition: all 0.2s;
      &Active {
        opacity: 1;
      }
      &:hover {
        opacity: 0.9;
      }
    }
  }

  .line {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 8px;
    margin-top: 4px;
  }

  .control {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  :global {
    .ant-checkbox-inner {
      background-color: #fff0;
      border: 1px solid rgba(255, 255, 255, 0.45);
    }

    .ant-checkbox-checked .ant-checkbox-inner {
      background-color: #fff0;
      border: 1px solid #2fb0ff;
    }

    .ant-checkbox-checked .ant-checkbox-inner::after {
      position: absolute;
      display: table;
      border: 2px solid #2fb0ff;
      border-top: 0;
      border-left: 0;
      transform: rotate(45deg) scale(1) translate(-50%, -50%);
      opacity: 1;
      transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;
      content: ' ';
    }
    .ant-switch {
      background-color: rgba(255, 255, 255, 0.1);
    }

    .ant-switch-checked {
      background-color: rgba(255, 255, 255, 0.2);

      .ant-switch-handle::before {
        background-color: #2fb0ff;
      }
    }
  }
}

.blockInfo {
  // position: absolute;
  // left: 24px;
  // left: 448px;
  // bottom: 330px;
  color: #ffffff;
  width: 490px;
  position: relative;
  // margin-bottom: 20px;
  z-index: 10;

  &Title {
    display: inline-block;
    width: 400px;
    .limit-lengtgh-text();
  }

  &Content {
    color: rgba(#fff, 0.8);
  }

  :global {
    .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
      font-family: AlibabaPuHuiTi-Bold, AlibabaPuHuiTi;
      font-weight: bold;
      color: #2fb0ff;
      text-shadow: 0 0 0.25px currentColor;
    }

    .ant-tabs-tab-btn {
      width: 100px;
      text-align: center;
      height: 32px;
      line-height: 28px;
      color: rgba(#fff, 0.8);
      background: linear-gradient(
        to bottom,
        rgba(#ffffff, 0.2) 85%,
        transparent 85%,
        transparent 95%,
        rgba(#ffffff, 0.2) 95%
      );

      &:hover {
        color: #fff;
      }
    }

    .ant-tabs-tab + .ant-tabs-tab {
      margin: 0 0 0 4px;
    }

    .ant-tabs-top > .ant-tabs-nav::before,
    .ant-tabs-top > div > .ant-tabs-nav::before {
      display: none;
    }

    .ant-tabs-ink-bar {
      display: none;
    }

    .ant-tabs-tab-disabled .ant-tabs-tab-btn {
      color: rgba(#ffffff, 0.4);

      &:hover {
        color: rgba(#ffffff, 0.4);
      }
    }
  }

  .progress {
    .code {
      color: #ffffff;
      font-weight: 500;
      font-size: 16px;

      span {
        display: inline-block;
        height: 18px;
        line-height: 18px;
        background: #f2992b;
        border-radius: 1px;
        font-size: 12px;
        padding-left: 6px;
        padding-right: 6px;
      }
    }

    .info {
      div {
        font-size: 14px;
        font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi;
        font-weight: 400;
        color: rgba(#ffffff, 0.65);
      }

      p {
        font-size: 12px;
        font-weight: 400;
        color: rgba(#f2992b, 0.65);
      }
    }

    .phone {
      color: #2fb0ff;
      font-size: 13px;
    }

    .bar {
      display: flex;
      justify-content: space-between;
      border: 1px solid rgba(#ffffff, 0.2);
      padding: 16px;

      &Item {
        height: 2px;
        background: rgba(#ffffff, 0.2);

        &Active {
          background: rgba(#f2992b);
        }
      }
    }
  }

  .qualityCard {
    border-bottom: 1px solid rgba(#ffffff, 0.2);
    padding: 8px;
    margin-bottom: 16px;
    background: rgba(#fff, 0.05);
    font-size: 12px;

    &:last-child {
      border-bottom: 0;
      margin-bottom: 0;
    }

    .title {
      display: flex;
      justify-content: space-between;
      font-size: 14px;

      span {
        color: #2fb0ff;
        font-size: 12px;
      }
    }

    .content {
      padding-top: 8px;
      padding-bottom: 8px;
      color: rgba(#ffffff, 0.65);
    }

    .info {
      display: flex;
      justify-content: space-between;
      color: #2fb0ff;

      .call {
      }

      .location {
      }
    }
  }

  .list {
    height: 142px;
    overflow: auto;
    .beautify-scrollbar();
  }
}

.videoPanel {
  // position: absolute;
  // top: 10px;
  // left: 410px;
  margin-bottom: 20px;
  // background: url('../images/视频样式2.png');
  width: 400px;
  height: 300px;
  position: relative;

  :global {
    .anticon-close {
      margin-left: 10px;
      cursor: pointer;
      transition: all linear 0.2s;

      &:hover {
        color: #ffffff;
      }
    }
  }

  &Title {
    .limit-lengtgh-text();
    padding-top: 10px;
    padding-left: 53px;
    color: rgba(#ffffff, 0.85);
  }

  &Body {
    position: relative;
    display: flex;
    justify-content: center;
    text-align-last: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 364px;
    margin: auto;
    margin-top: 10px;
    &::before {
      position: absolute;
      width: 364px;
      height: 23px;
      content: '';
      top: -24px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-bottom: 1px solid transparent;
    }
    img {
      cursor: pointer;

      &:hover {
        opacity: 0.9;
      }
    }
  }
}

.videoToLeft {
  position: fixed;
  top: unset;
  bottom: 0;
  left: 9px;
  background: transparent;
  pointer-events: none;
  z-index: 100;
  :global {
    .side-panel2-title {
      visibility: hidden;
    }
    .side-panel2-body {
      background: transparent;
    }
  }

  .videoPanelTitle {
    visibility: hidden;
  }

  .videoPanelBody div {
    pointer-events: auto;
  }
  .videoPanelBody {
    border: 1px solid transparent;
    &::before {
      border: 1px solid transparent;
    }
  }
}

.videoToLeft2 {
  position: fixed;
  top: unset;
  bottom: 336px;
  left: 9px;
  background: transparent;
  pointer-events: none;
  z-index: 100;
  :global {
    .side-panel2 {
      width: 370px;
    }
    .side-panel2-title {
      visibility: hidden;
    }
    .side-panel2-body {
      background: transparent;
    }
  }

  // .videoPanelTitle {
  //   visibility: hidden;
  // }

  // .videoPanelBody div {
  //   pointer-events: auto;
  // }
  // .videoPanelBody {
  //   border: 1px solid transparent;
  //   &::before {
  //     border: 1px solid transparent;
  //   }
  // }
}
